<?php
// Static class, only used for function groupings

class URL {
	function show_404($msg='The requested page could not be found') {
		Template::clear();
		Template::load("error", array("type"=>404, "message"=>$msg));
		Template::output();
		die();
	}

	function show_error($msg) {
		Template::clear();
		Template::load("error", array("message"=>$msg));
		Template::output();

		
		die();
	}

	function link($url) {
		return Config::site_url . "/" . $url;
	}
}